package com.jdrx.sw.sewage.common.enums;

import com.jdrx.sw.sewage.common.constant.Constant;

/**
 * AI预测
 */
public enum EForecastType {
    CHECK(1, "检测/web"),
    FORECAST(2, "预测/悬浮球");

    private Integer key;
    private String value;

    EForecastType(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getName(Integer key) {
        for (EForecastType status : EForecastType.values()) {
            if (key.intValue() == status.getKey()) {
                return status.getValue();
            }
        }
        return Constant.EMPTY;
    }

    public Integer getKey() {
        return key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
